Ext.onReady(function(){
	
	// ===========================================
	// Set ExtJS property.
	// ===========================================
	Ext.BLANK_IMAGE_URL = m_ContextName + '/common/ext-2.2/resources/images/default/s.gif';
	Ext.state.Manager.setProvider(new Ext.state.CookieProvider());
	Ext.QuickTips.init();
	
	// ===========================================
	// Set Layout using Ext Viewport
	// ===========================================
	var viewport = new Ext.Viewport({
		layout: 'border',
		items: [
		        gridBody
		        ]
	});
	
	function fnLoadBody()
	{
		if (m_Type == '1')
		{
			httpProxyBody.conn.url = m_ContextName + '/analysis/ajax_body_db.json?fileNo=' + m_FileNo;
		}
		else
		{
			httpProxyBody.conn.url = m_ContextName + '/analysis/ajax_body_file.json?fileNo=' + m_FileNo;
		}
		storeBody.load();
	}
	
	// 화면로드가 끝난 후 로딩.
	fnLoadBody();
});